package com.zf.apartment.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zf.common.annotation.Excel;
import com.zf.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 属性数据对象 property_data
 *
 * @author rxf
 * @date 2024-10-08
 */
@TableName(resultMap = "com.zf.apartment.mapper.PropertyDataMapper.PropertyDataResult")
public class PropertyData extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 属性数据id
     */
    @TableId(value = "property_data_id", type = IdType.AUTO)
    private Long propertyDataId;

    /**
     * 属性类型
     */
    @Excel(name = "属性类型")
    private String propertyType;

    /**
     * 属性数据值
     */
    @Excel(name = "属性数据值")
    private String propertyDataValue;
    private Long propertyId;

    public Long getPropertyId() {
        return propertyId;
    }

    public void setPropertyId(Long propertyId) {
        this.propertyId = propertyId;
    }

    public void setPropertyDataId(Long propertyDataId) {
        this.propertyDataId = propertyDataId;
    }

    public Long getPropertyDataId() {
        return propertyDataId;
    }

    public void setPropertyType(String propertyType) {
        this.propertyType = propertyType;
    }

    public String getPropertyType() {
        return propertyType;
    }

    public void setPropertyDataValue(String propertyDataValue) {
        this.propertyDataValue = propertyDataValue;
    }

    public String getPropertyDataValue() {
        return propertyDataValue;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("propertyDataId", getPropertyDataId())
                .append("propertyType", getPropertyType())
                .append("propertyDataValue", getPropertyDataValue())
                .toString();
    }
}